package awt;

import java.awt.*;

/**
 * @description: BorderLayout 布局
 * @author: Tom
 * @create: 2019-07-22 17:55
 **/
public class FiveButtons {

    public static void main(String[] args) {
        Frame f= new Frame("窗口");
        f.setLayout(new BorderLayout());
        f.add("North",new Button("North"));
        f.add("South",new Button("South"));
        f.add("East",new Button("East"));
        f.add("West",new Button("West"));
        f.add("Center",new Button("Center"));
        f.setSize(200,200);
        f.setVisible(true);
    }

}
